/**
 * 
 */
package server.container;

/**
 * @author Christian
 * 
 */
public class UserBlocker {
	
	private long erstellt = System.currentTimeMillis();
	
	private long blockenBis = 0;
	
	private boolean probeAlarm = false;
	
	
	private String identifier = "";

	
	public UserBlocker(String identifier, long dauer, boolean probeAlarm) {

		blockenBis = erstellt + dauer;
		this.probeAlarm = probeAlarm;
		
		this.identifier = identifier;
	}
	


	
	public boolean isBlockAktuell() {
				
		return blockenBis > System.currentTimeMillis();
	}
	
	/**
	 * @return the probeAlarm
	 */
	public boolean isProbeAlarm() {

		return probeAlarm;
	}
	
	/**
	 * @param probeAlarm
	 *            the probeAlarm to set
	 */
	public void setProbeAlarm(boolean probeAlarm) {

		this.probeAlarm = probeAlarm;
	}
	
	/**
	 * @return the identifier
	 */
	public String getIdentifier() {

		return identifier;
	}
}
